package adapterpattern2;

import adapterpattern.Banner;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: sunxu
 * @Date: 2017/10/15
 * @Time: 21:38
 * Description:
 */
public class PrintBanner extends Print {

    private Banner banner;

    public PrintBanner(Banner banner) {
        this.banner = banner;
    }

    @Override
    public void printWeak() {
        banner.showWithAster();
    }

    @Override
    public void printStrong() {
        banner.showWithParen();
    }
}
